package com.shudes.eval;

import java.math.*;

import com.shudes.game.*;

public class HandStrength implements Comparable {

	protected Hand hand;
	protected HandType handType;
	protected Integer strength;
	
	HandStrength(Hand hand, HandType type, Integer strength) {
		this.hand=hand;
		this.handType=type;
		this.strength=strength;
	}

	public int compareTo(Object o) {
		HandStrength h; 
				
		h = (HandStrength) o;
		return (this.handType.equals(h.handType)) ? 
			this.strength.compareTo(h.strength) : 
				this.handType.compareTo(h.handType); 
	}

	public HandType getHandType() { 
		return handType; 
	}
		
	public Integer getStrength() { 
		return strength; 
	}
	
	public Hand getHand() { 
		return hand; 
	}

}
